home *** CD-ROM | disk | FTP | other *** search
- function Speak(Osoba, SText, Orient, EngText, Driver)
- {
- if(Orient == "R")
- {
- X = getProperty(Osoba, _X) + Osoba.hx * Osoba._xscale / 100;
- }
- else
- {
- X = getProperty(Osoba, _X) - Osoba.hx * Osoba._xscale / 100;
- }
- Y = getProperty(Osoba, _Y) + Osoba.hy * Osoba._yscale / 100;
- _root.s.bubble.Text = SText;
- if(_root.menu.eng)
- {
- _root.s.bubble.Text = engText;
- }
- _root.s.bubble.Count = 12 + length(SText);
- _root.s.bubble.i = 1;
- _root.s.bubble.Osoba = Osoba;
- _root.s.bubble.Driver = Driver;
- _root.s.bubble.Orient = Orient;
- if(Orient == "R")
- {
- _root.s.bubble.gotoAndPlay(4);
- setProperty("_root.s.bubble", _X, X + Osoba._width / 1.5);
- }
- else
- {
- _root.s.bubble.gotoAndPlay(2);
- setProperty("_root.s.bubble", _X, X - Osoba._width / 1.5);
- }
- setProperty("_root.s.bubble", _Y, Y - 30 * Osoba._xscale / 100);
- if(Orient == "L" || Orient == "R")
- {
- tellTarget(Osoba)
- {
- gotoAndStop("SpeakR");
- play();
- }
- }
- else
- {
- tellTarget(Osoba)
- {
- gotoAndPlay("Speak" + Orient);
- }
- }
- }
-